* {
  margin: 0;
  padding: 0;
}

dl, ol, ul {
  margin-bottom: 0;
  list-style: none;
}
ol, ul {
  padding-left: 0;
}

:root {
  font-size: 16px;
}

.root {
  display: flex;
  height: 100vh;
}

aside {
  position: relative;
  width: 250px;
  background: #202124;
  color: #fff;
  /* padding: 10px; */
  overflow: hidden;
  transition: all 0.2s;
}
.aside-inner {
  width: 250px;
  padding: 10px;
}
aside.hidden {
  width: 0;
  padding: 0;
}
aside.hidden .sidebar-btn {
  position: fixed;
  top: 10px;
  left: 0px;
  z-index: 99;
}

.aside-top {
  display: flex;
  width: 100%;
  margin-bottom: 10px;
  color: #fff;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
}
.new-chat-btn {
  flex: 1 auto;
  padding: 10px 0;
  border: 1px solid #ccc;
  border-radius: 6px;
  color: #fff;
  background-color: transparent;
  text-align: left;
  text-indent: 12px;
  cursor: pointer;
}
.new-chat-btn:hover,
.sidebar-btn:hover {
  background: #353541;
}
.sidebar-btn {
  display: inline-block;
  padding: 10px 10px 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-left: 12px;
  background-color: #202124;
}

.chat-list {
  font-size: 16px;
  line-height: 40px;
  list-style: none;
}

.chat-list li {
  display: flex;
  align-items: center;
  /* position: relative; */
  margin-top: 8px;
  padding: 4px 10px;
  cursor: pointer;
}

.chat-list li.active,
.chat-list li:hover {
  background: #353541;
  border-radius: 5px;
}

.chat-list__name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.aside-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 10px;
}
/* new add start ------------------------ */
.aside-bottom ul {
  list-style: none;
}
.aside-bottom ul li {
  position: relative;
  height: 44px;
  line-height: 44px;
  padding-left: 12px;
  border-radius: 6px;
  cursor: pointer;
}
.aside-bottom ul li:hover {
  background: #353541;
}
.aside-bottom > .user-name {
  display: inline-block;
  padding: 5px 0;
}
.aside-bottom .line-top {
  display: block;
  border-top: 1px solid #ccc;
}
.aside-bottom .new-icon {
  position: absolute;
  top: 14px;
  right: 8px;
  padding: 2px 6px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
  background-color: rgb(250,230,158);
  line-height: 14px;
  color: rgb(52,53,65);
}
.userinfo-item > img {
  width: 20px;
  margin-right: 8px;
  vertical-align: -3px;
}
/* new add end ------------------------ */
section {
  position: relative;
  height: 100vh;
  flex: 1 auto;
  background-color: #333441;
  color: rgb(209, 213, 219);
  font-size: 16px;
}
.chat {
  height: 100%;
  overflow: auto;
  padding-bottom: 164px;
  box-sizing: border-box;
}
.chat-item.answer {
  background-color: #454654;
}
.chat-inner-item {
  display: flex;
  column-gap: 12px;
  max-width: 48rem;
  margin: 0 auto;
  padding: 1.5rem 0;
}
.chat-img {
  width: 30px;
}
.chat-img img {
  width: 30px;
}
.chat-content {
  position: relative;
  width: calc(100% - 115px);
  word-wrap: break-all;
}
.chat-content .text-content {
  margin-top: -4px;
  line-height: 28px;
}
.chat-op {
  position: absolute;
  top: 0;
  right: -120px;
  width: 104px;
  font-size: 12px;
}
.chat-op > span {
  display: inline-block;
  padding: 4px 4px 0px;
  font-style: normal;
  border-radius: 4px;
  color: rgb(172, 172, 190);
  cursor: pointer;
}
.chat-op > span:hover {
  background-color: #333441;
  color: #fff;
}

.ask .chat-op > span:hover {
  background-color: #454654;
}

.chat-input {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  min-height: 164px;
  background-image: linear-gradient(180deg, rgba(53,55,64,0), #353740 58.85%);
}
.chat-input-content {
  width: 48rem;
  margin: 0 auto;
}
.chat-input-btn {
  text-align: center;
}
.chat-input-btn button {
  display: inline-block;
  padding: 8px 12px;
  background-color: rgb(52, 53, 65);
  border: 1px solid rgb(86,88,105);
  border-radius: 4px;
  font-size: 14px;
  line-height: 20px;
  margin-bottom: 8px;
  color: rgb(217, 217, 227);
  cursor: pointer;
}
.chat-input-btn button:hover {
  background-color: rgba(64,65,79,1);
}
.chat-input-textarea {
  position: relative;
  display: flex;
  padding: 16px;
  padding-right: 48px;
  background-color: rgb(64,65,79);
  border-radius: 12px;
}
.chat-input-textarea textarea {
  display: block;
  width: 100%;
  border-radius: 8px;
  line-height: 24px;
  height: 24px;
  border: none;
  background-color: transparent;
  color: #fff;
  outline: none;
  font-size: 16px;
  resize: none;
  flex: 1 auto;
}
.chat-input > p {
  padding: 12px 16px 24px;
  margin-bottom: 0;
  text-align: center;
  font-size: 12px;
  color: rgb(197,197,210);
}

/* icon css start -------------------------------------- */
.iconpark-icon {
  width: 16px;
  height: 16px;
}
.icon-new-chart {
  /* vertical-align: -3px; */
}
.icon-chat {
  display: block;
  width: 16px;
  margin-right: 8px;
  /* vertical-align: -3px; */
}
.icon-chat-opbox {
  width: 72px;
  /* position: absolute;
  top: 3px;
  right: 8px; */
}
.icon-chat-opbox > span {
  margin-right: 4px;
  color: rgb(197,197,210);
}
.icon-chat-opbox > span:hover {
  color: #fff;
}
.chat-user {
  margin-right: 12px;
  vertical-align: -1px;
}
.chat-more {
  position: absolute;
  top: 3px;
  right: 8px;
}
.chat-refresh {
  margin-right: 4px;
  vertical-align: -2px;
}
.chat-refresh .iconpark-icon {
  width: 14px;
  height: 14px;
}
.chat-send-box {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background-color: transparent;
  border: none;
  cursor: pointer;
}
.chat-send-box.active {
  background-color: rgb(25,195,195);
}
.chat-send-message {
  position: absolute;
  top: 2px;
  left: 8px;
  color: rgb(172,172,190);
}
.chat-send-box.active .chat-send-message {
  color: #fff;
}
/* icon css end    -------------------------------------- */

/* 保持提问换行 */
.ask-text-content {
  white-space: pre-wrap;
}

/* 光标 start -------------------------------------------- */
@keyframes cursor-blink {
  0%, 100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}
.cursor::after {
  position: relative;
  top: 3px;
  content: " ";
  display: inline-block;
  width: 8px;
  height: 18px;
  background-color: rgb(209,213,219);
  animation: cursor-blink 0.8s infinite;
}

/* 光标 end -------------------------------------------- */

.text-content p {
  margin-bottom: 0;
}

.text-content blockquote {
  margin: 0 0 16px 0;
  padding: 0 1em;
  color: #8b949e;
  border-left: 0.25em solid #30363d;
}
